import sevoes from "@/util/Http";
import Qs from "qs";
function freightInquire() {//查询
  return sevoes({
    method: "get",
    params: {
      _gp: "admin.freight",
      _mt: "getAllFreightTemplate"
    }
  });
}

function addFreightTemplate(data) {
  //添加
  return sevoes({
    method: "post",
    data: Qs.stringify({
      _gp: "admin.freight",
      _mt: "addFreightTemplate",
      ...data,
    }),
  })
}

function updateFreightTemplate(data) {
  //修改
  return sevoes({
    method: "post",
    data: Qs.stringify({
      _gp: "admin.freight",
      _mt: "updateFreightTemplate",
      ...data,
    }),
  })
}

function deleteFreightTemplate(data) {
  //删除
  return sevoes({
    method: "post",
    data: Qs.stringify({
      _gp: "admin.freight",
      _mt: "deleteFreightTemplate",
      ...data,
    }),
  })
}
export default {freightInquire,addFreightTemplate,updateFreightTemplate,deleteFreightTemplate}